﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WinFormsMvp;
using PresentationLayer.Views.ViewContracts;

namespace PresentationLayer.Presenters
{
    public class ConfigurationsPresenter : Presenter<IConfigurationsView>
    { 

        public ConfigurationsPresenter(IConfigurationsView view)
            : base(view)
        {
          //  timeTrackerService = ServiceLocator.Resolve<ITimeTrackerService>();

            View.Load += new EventHandler(View_Load);
            View.CloseFormClicked += new EventHandler(View_CloseFormClicked);
            View.AddTaskClicked += new EventHandler(View_AddTaskClicked);
        }

        void View_CloseFormClicked(object sender, EventArgs e)
        {
            View.CloseForm();
        }

        private void View_Load(object sender, EventArgs e)
        {
         //   View.Model = new CreateTaskModel();
            //View.Model.Projects = timeTrackerService.GetListOfVisibleProjects().ToList();
        }

        private void View_AddTaskClicked(object sender, EventArgs e)
        {
          //  timeTrackerService.CreateNewTask(View.Model.Name, View.Model.Visibilty, View.Model.SelectedProject, View.Model.Estimate, View.Model.Description);
        }
    }
}
